package cn.auction.biz;

import cn.auction.entity.Auction;
import cn.auction.entity.AuctionRecord;
import cn.auction.entity.AuctionUser;
import cn.auction.util.Page;

import java.util.List;
import java.util.Map;

public interface AuctionService {
    //查询所有拍卖信息
    Page<Auction> findAll() throws Exception;

    Map<String, Object> select() throws Exception;

    Page<Auction> find(Auction auction, int pageIndex) throws Exception;

    void add(Auction auction) throws Exception;

    Auction findById(Long auctionId) throws Exception;

    void bid(AuctionRecord auctionRecord) throws Exception;

    Map<String, List> find(AuctionUser auctionUser) throws Exception;
}
